home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HDA Tech Note #1.cpt / HDA Tech Note #1 / card_11188.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  38 lines

  1. -- card: 11188 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2619
  5. -- name: SELF-MODIFYING CODE
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0001
  11. -- rect: left=37 top=42 right=91 bottom=475
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 8448
  18. -- line height: 16
  19. -- part name: 
  20.  
  21.  
  22. -- part contents for card part 1
  23. ----- text -----
  24. Commands and Structures to Avoid
  25.  
  26. SELF-MODIFYING CODE
  27.  
  28. -- part contents for background part 3
  29. ----- text -----
  30.  
  31.  
  32.  
  33.  
  34. -- part contents for background part 2
  35. ----- text -----
  36.  
  37. Self-modifying code is bad form in any language.  In HyperTalk, it is possible to create such code.  But if you include handlers in your HyperCard stacks that modify themselves or one another, you may experience difficulties in HyperDA.  This is because HyperDA does not interpret your scripts through the HyperTalk interpreter mechanism but rather uses its own routine.  This routine is not designed to understand or handle self-modifying code.  Some modifications might not only be ignored but cause your stack to behave in unexpected ways.
  38.